package sepe.chenli.unit4.Animal;

import com.sun.javafx.binding.StringFormatter;

public  abstract class Animal {
    String Name;
    String Food;
    String Area;

    public Animal(String Name, String Food, String Area) {
        this.Name=Name;
        this.Food=Food;
        this.Area=Area;
    }

    public String getName() {
        return Name;
    }
    public void setName(String name) {
        this. Name = Name;
    }
    public String getFood() {
        return Food;
    }

    public void setFood(String food) {
       this.Food = Food;
    }

    public String getArea() {
        return Area;
    }

    public void setArea(String area) {
       this.Area = Area;
    }
   abstract String findFood();
    String  Aet(){
        return Name+"吃"+Food;
    }
    abstract void wholeLife();
}
